package com.kt.kvw.exception;

import com.kt.kvw.enums.ErrorCode;

/**
 * Created with IntelliJ IDEA.
 * Desc:
 *
 * @author: keen
 * Date: 2020-07-13
 * Time: 20:58
 */
public class KwvApplicationException extends RuntimeException {
    private ErrorCode errorCode;
    public KwvApplicationException(ErrorCode errorCode){
        super(errorCode.getMessage());
        this.errorCode=errorCode;
    }

    public KwvApplicationException(String message){
        super(message);
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }
}
